package com.kcwl.carrier.domain.service;

import com.kcwl.carrier.domain.condition.CarrierBlacklistPageCondition;
import com.kcwl.carrier.domain.entity.CarrierBlacklist;
import com.kcwl.carrier.domain.repository.ICarrierBlacklistRepository;
import com.kcwl.ddd.domain.entity.KcPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 刘旭超
 * @date 2022年11月21日 17:07
 * @Description
 */
@Service
public class CarrierBlacklistDomainService {

    @Autowired
    private ICarrierBlacklistRepository carrierBlacklistRepository;
    /**
     * 分页列表查询
     */
    public KcPage<CarrierBlacklist> queryPageList(CarrierBlacklistPageCondition condition) {
        return carrierBlacklistRepository.queryPageList(condition);
    }

    /**
     * 添加黑名单
     */
    public void addBlacklist(CarrierBlacklist command) {
        carrierBlacklistRepository.addBlacklist(command);
    }
}
